<div class="bgc-w box box-primary">
    <!--盒子头-->
    <div class="box-header">
        <h3 class="box-title">
            <a href="dayedit" class="label label-success" style="padding: 5px;">
                <span class="glyphicon glyphicon-plus"></span> 新增
            </a>
        </h3>
        <div class="box-tools">
            <div class="input-group" style="width:150px;float:right;top:-5px">
                <input type="text" class="form-control input-sm pull-right baseKey" value="${(baseKey)!''}"
                       placeholder="查找..."/>
                <div class="input-group-btn" style="top:-1px;">
                    <a class="btn btn-sm btn-default glyphicon glyphicon-search btn-change baseKetsubmit"></a>
                </div>
            </div>
        </div>
    </div>
</div>
<!--盒子身体-->
<div class="box-body no-padding">
    <div class="table-responsive">
        <table class="table table-hover table-striped">
            <tr>

                <th scope="col">类型</th>
                <th scope="col">标题</th>
                <th scope="col">发布时间</th>
                <th scope="col">发布人</th>
                <th scope="col">部门</th>
                <th scope="col">状态</th>
                <th scope="col">操作</th>
            </tr>
            <#list schedules as schedule>
                <tr>
                    <td><span>
<#--							<#list types as type>-->
                            <#--								<#if schedule.typeId == type.typeId>-->
                            <#--									<span>${type.typeName} </span>-->
                            <#--								</#if>-->
                            <#--							</#list>-->
                            ${(schedule.aoaTypeList.typeName)!''}
						</span></td>
                    <td><span>${(schedule.title)!''}</span></td>
                    <td><span>${(schedule.createTime)!''}</span></td>
                    <td><span>${(schedule.user.userName)!''}</span></td>
                    <td><span>${(schedule.user.dept.deptName)!''}</span></td>
                    <td>
                        <#--							<#list statuses as status>-->
                        <#--								<#if schedule.statusId == status.statusId>-->
                        <#--									<div class="label ${status.statusColor}">${status.statusName}</div>-->
                        <#--								</#if>-->
                        <#--							</#list>-->
                        <div class="label ${schedule.aoaStatusList.statusColor}">${schedule.aoaStatusList.statusName}</div>
                    </td>
                    <#if user.userId == schedule.userId>
                        <td>
                            <a href="dayedit?rcid=${schedule.rcId}&page=${page.number}" class="label xiugai"><span
                                        class="glyphicon glyphicon-edit"></span> 修改</a> <a
                                    onclick="{return confirm('删除该记录将不能恢复，确定删除吗？');};"
                                    href="dayremove?rcid=${schedule.rcId}&page=${page.number}"
                                    class="label shanchu"><span
                                        class="glyphicon glyphicon-remove"></span> 删除</a>
                        </td>
                    </#if>
                </tr>
            </#list>
        </table>
    </div>
</div>
<!--盒子尾-->
<#include "/common/paging.ftl">
</div>

